1
bash
This demonstrates the use of built-in Bash variables to access script information like return values, process ID, and arguments.
echo "Last program's return value: $?" echo "Script's PID: $$" echo "Number of arguments passed to script: $#" echo "All arguments passed to script: $@" echo "Script's arguments separated into different variables: $1 $2..."
bash internaldata manipulationspositional argumentsbuilt-in variables